


// Project: Photo ID Laws and Perceptions of Electoral Fraud
// Date: 05/21/2021
// Task: Research & Politics Revisions


// Dataset: EndresPanagopoulosR&P2021.dta

** Dependent Variable
tab fraud_ordinal
tab  fraud_ordinal treat_any, chi2 col
ttest fraud_ordinal, by(treat_any)

// Table 1:  Perceptions of Voter Fraud Prevalence in the 2017 Virginia Election
// Model 1
ologit fraud_ordinal i.treat_any

// Model 2
ologit fraud_ordinal i.treat_any i.party_estimated_republican i.party_estimated_independent voters_age i.male i.turnout_2013 i.turnout_2016 turnout_primary_2017
margins, dydx(treat_any)
margins treat_any


// Table 2: Knowledge of Voting Requirements

// Model 1
regress mc_correct i.treat_2or3
// Model 2
regress mc_correct i.treat_2or3 i.party_estimated_republican i.party_estimated_independent voters_age i.male i.turnout_2013 i.turnout_2016 turnout_primary_2017

** Analysis in Text

ttest fraud_ordinal, by(mc_correct)

// Table A1: Demographic characteristics of experimental subjects
mean party_estimated_democrat
mean party_estimated_republican
mean age35
mean age50
mean age65
mean age80
mean age100
mean male
mean turnout_primary_2017
mean turnout_2016
mean turnout_2013



// Table A2: Demographic characteristics for each condition

ttest party_estimated_democrat, by(treat_any)
ttest party_estimated_republican, by(treat_any)
ttest age35, by(treat_any)
ttest age50, by(treat_any)
ttest age65, by(treat_any)
ttest age80, by(treat_any)
ttest age100, by(treat_any)
ttest male, by(treat_any)
ttest turnout_primary_2017, by(treat_any)
ttest turnout_2016, by(treat_any)
ttest turnout_2013, by(treat_any)

regress treat_any i.party_estimated_democrat i.party_estimated_republican i.age35 i.age50 i.age65 i.age80 i.male  i.turnout_primary_2017 i.turnout_2016 i.turnout_2013



// Table A3: Perceptions of Voter Fraud Prevalence in the 2017 Virginia Election

// Model 1
ologit fraud_ordinal i.treat_reminder i.treat_rights i.treat_dont
// Model 2
ologit fraud_ordinal i.treat_reminder i.treat_rights i.treat_dont i.party_estimated_republican i.party_estimated_independent voters_age i.male i.turnout_2013 i.turnout_2016 turnout_primary_2017
